Skip to main content
POST
/
api
/
portrait
/
effects
/
hairstyle-editor-pro
Hairstyle changer Pro
curl --request POST \
  --url https://www.ailabapi.com/api/portrait/effects/hairstyle-editor-pro \
  --header 'Content-Type: multipart/form-data' \
  --header 'ailabapi-api-key: <api-key>' \
  --form task_type=async \
  --form 'hair_style=<string>' \
  --form 'color=<string>' \
  --form 'image_size=<string>' \
  --form image=@example-file
{
  "request_id": "",
  "log_id": "",
  "error_code": 0,
  "error_code_str": "",
  "error_msg": "",
  "error_detail": {
    "status_code": 200,
    "code": "",
    "code_message": "",
    "message": ""
  },
  "task_type": "",
  "task_id": ""
}

Authorizations

ailabapi-api-key
string
header
required

API Key for authentication

Body

multipart/form-data
task_type
string

Task Type.

Example:

"async"

image
file
hair_style
string

Hairstyle.

color
string

Color.

image_size
string

Returns the number of images.

Response

200 - application/json

Success

The response is of type object.